package org.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName Psych
 * @Description TODO
 * @Author lipeijin
 * @Date 2025年08月15日 下午4:53
 * @Version 1.0
 */
//心理答疑表
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Psych {
    private int id;
    private String title;
    private int userId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    private int replyCount;
    private String content;
//  一对多
    private User usernick;//用户表
//  一对多
    private PsychReply psychreplyTime;//心理答疑回复表
}
